/**
 * Created by apple on 2017/6/25.
 */
import React,{Component} from 'react';
import {
  View,Text,
  StyleSheet
} from "react-native";

import NavigationBar from "../../common/NaviagtionBar"
import CustomKeyPage from "./CustomKeyPage";
export default class MyPage extends Component{
  constructor(props){
    super(props);
    this.state= {
      word:''
    }
  }
  render(){
    return (<View style={styles.container}>
        <NavigationBar
          title="自定义标签页面"
          style={{
            backgroundColor:'red'
          }}
          statusBar={{
            backgroundColor:"red"
          }}
        />

        <Text style={styles.tips}
        onPress={() => {
          this.props.navigator.push({
            component:CustomKeyPage,
            params:{...this.props}
          })
        }}
        >
          自定义标签页面
        </Text>

      </View>
    )
  }


}
const styles = StyleSheet.create({
  container:{
    flex:1,
    backgroundColor:"gray",
  },
  text:{
    fontSize:20
  },
  tips:{
    margin:5,
    fontSize:20,
  },
})
